package cn.ticket.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.omg.PortableServer.LIFESPAN_POLICY_ID;
import org.springframework.stereotype.Repository;

import cn.ticket.model.Ticketorder;
@Repository 
public interface TicketorderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Ticketorder record);

    int insertSelective(Ticketorder record);

    Ticketorder selectByPrimaryKey(Integer id);
    
    List<Map<String, Object>> getSeatInfoByStaffIdAnd(@Param("staffId")Integer staffId,@Param("seatName")String seatName,@Param("busOrderId")Integer busOrderId);

    int updateByPrimaryKeySelective(Ticketorder record);

    int updateByPrimaryKey(Ticketorder record);
    
    List<Map<String, Object>> getInfoByBusId(@Param("busId")Integer busId);
    
    List<Map<String, Object>> getValidateTicketsInfoByStaffId(@Param("staffId")Integer staffId);
    
    List<Map<String, Object>> getInvalidateTicketsInfoByStaffId(@Param("staffId")Integer staffId);
        
}